package com.woniuxy.microstockserver.service;

import com.woniuxy.microstockserver.bean.AllocationGoodsDetailsBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 赵雄伟
 * 调拨商品详情service
 */
public interface IAllocationGoodsDetailsService {

    /**
     * 新增调拨单调拨商品
     * @param
     * @param
     */
    void saveAllocationGoodsDetailsBean(Long alloId, List<AllocationGoodsDetailsBean> allocationGoodsDetailsBeans);

    /**
     * 根据调拨单外键id查询入库商品详情
     */
    List<AllocationGoodsDetailsBean> findAllocationAndGoodsDetail(Long id);

    /**
     * 根据调拨单外键id，删除调拨单商品信息，主要用于修改调拨单
     * @param id
     */
    void deleteByAlloId(Long id);
}
